{dede:config.pagesize value='30'/}
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
		<title>文档错误管理</title>
		<link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
		<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
		<link rel="stylesheet" href="../static/web/css/admin.css">
		<script>
			function getOneItem() {
				var allSel = "";
				if (document.form2.id.value) return document.form2.id.value;
				for (i = 0; i < document.form2.id.length; i++) {
					if (document.form2.id[i].checked) {
						allSel = document.form2.id[i].value;
						break;
					}
				}
				return allSel;
			}
			function getCheckboxItem() {
				var allSel = "";
				if (document.form2.id.value) return document.form2.id.value;
				for (i = 0; i < document.form2.id.length; i++) {
					if (document.form2.id[i].checked) {
						if (allSel == "")
							allSel = document.form2.id[i].value;
						else
							allSel = allSel + "`" + document.form2.id[i].value;
					}
				}
				return allSel;
			}
			function selAll() {
				for (i = 0; i < document.form2.id.length; i++) {
					if (!document.form2.id[i].checked) {
						document.form2.id[i].checked = true;
					}
				}
			}
			function noSelAll() {
				for (i = 0; i < document.form2.id.length; i++) {
					if (document.form2.id[i].checked) {
						document.form2.id[i].checked = false;
					}
				}
			}
			function delArc(id) {
				var qstr = getCheckboxItem();
				location = "erraddsave.php?id=" + qstr + "&dopost=delete";
			}
		</script>
	</head>
	<body>
		<form name="form2">
			<table cellpadding="3" cellspacing="1" align="center" class="table maintable my-3">
				<tr>
					<td bgcolor="#f5f5f5" colspan="8">文档错误管理</td>
				</tr>
				<tr bgcolor="#e9ecef" align="center">
					<td width="6%">选择</td>
					<td width="6%">id</td>
					<td width="18%">挑错人</td>
					<td width="20%">文档名称</td>
					<td width="10%">出错类型</td>
					<td width="10%">挑错时间</td>
					<td width="16%">错误文档</td>
					<td>修改建议</td>
				</tr>
				{dede:datalist empty='<tr><td colspan="8" align="center">暂无文档</td></tr>'}
				<tr align="center">
					<td><input type="checkbox" name="id" id="id" value="{dede:field.id/}"></td>
					<td>{dede:field.id/}</td>
					<td>{dede:field.mid function='username(@me)'/}</td>
					<td><a href='archives_do.php?dopost=editArchives&aid={dede:field.aid/}'>{dede:field.title/}</a></td>
					<td>{dede:field.type function='typename(@me)'/}</td>
					<td>{dede:field.sendtime function='GetDateMk(@me)'/}</td>
					<td>{dede:field.errtxt/}</td>
					<td>{dede:field.oktxt/}</td>
				</tr>
				{/dede:datalist}
				<tr>
					<td colspan="8">
						<a href="javascript:selAll()" class="btn btn-success btn-sm">全选</a>
						<a href="javascript:noSelAll()" class="btn btn-success btn-sm">取消</a>
						<a href="javascript:delArc(0)" class="btn btn-danger btn-sm">删除</a>
					</td>
				</tr>
				<tr bgcolor="#f5f5f5" align="center">
					<td colspan="8">{dede:pagelist listsize='6'/}</td>
				</tr>
			</table>
		</form>
	</body>
</html>